export const change_language = 'change_language'

export interface ChangeLanguageState {
	type: typeof change_language
	payload: 'en' | 'zh'
}

export type LanguageAction = ChangeLanguageState

export function changeLanguageActionCreate(payload: 'en' | 'zh'): ChangeLanguageState {
	return { type: change_language, payload }
}

